package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2022-02-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_like")
public class MemberLike extends Model<MemberLike> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableField("memberId")
    private Integer memberId;

    /**
     * 内容id
     */
    @TableField("itemId")
    private Integer itemId;

    /**
     * 类型 1资讯  1:短视频，2：点播 ， 3:电视台 ， 4:慢直播 ， 5活动 ， 6：活动里的视频
     */
    private Integer type;

    @TableField("cTime")
    private Date cTime;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    public static final String MEMBERID = "memberId";

    public static final String ITEMID = "itemId";

    public static final String TYPE = "type";

    public static final String CTIME = "cTime";

    public static final String ID = "id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
